﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="com.wobaby.dao.MessagerContentManagement"%>
<%@page import="com.wobaby.vo.MessagerContentVO"%>
<%@page import="java.sql.Connection"%>
<%@page import="com.wobaby.util.C3P0Utils"%>
<%@page import="com.wobaby.vo.UserVO"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>通知管理</title>
<base href="" />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta charset="utf-8">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<link href="css/listhome1_6.css" rel="stylesheet" type="text/css"/>
 
<style>
 .top_bar {display: none;}
 .themeStyle{ background-color:#E83407 !important; }  
</style>
     
    <link rel="stylesheet" href="css/xygk.css/reset.css" type="text/css"></link>
    <link rel="stylesheet" href="css/xygk.css/weimob-ui-1-1.css" type="text/css"></link>
    <link rel="stylesheet" href="css/xygk.css/common.css" type="text/css"></link>
    <link rel="stylesheet" href="css/xygk.css/peak-0.css" type="text/css"></link>
    <link rel="stylesheet" href="css/xygk.css/share_and_recommond.css" type="text/css"></link>
</head>

<body id="listhome1">
<div id="ui-header">
<div class="fixed">

<a class="ui-btn-left_pre" href="javascript:history.go(-1);"></a>
<a class="ui-btn-right" href="wxapi.php?ac=listhome1&tid=32249&page=1&w=1"></a>
</div>
</div>
<div id="overlay"></div>
<div id="win">
<ul class="dropdown"> 
<div class="clr"></div>
</ul>
</div>
<div class="Listpage">
<div class="top46"></div>
<div>
<p>
  <p><div><h2>消息列表</h2></div></p>
 <div class="head_logo" onClick="location.href='http://1.wobushiyuhao.sinaapp.com/wx/index.html'">
				<div>
					<span style="background-image:url('http://annchen.oss.aliyuncs.com/weixinface/3a/90/23/3a90238965a7dad7482bd011f016fb11.jpg');"></span>
				</div>
				<div style="width:100%;">
					<label>好宝宝幼儿园</label>
					<div style="color:#ccc;">haobaobao</div>
				</div>
			</div>
  <p>
      <input name="button" type="button" id="btn1" value="全 选" />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input type="button" id="btn2" value="取消全选">
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	<input type="button" id="btn3" value="删 除">
    </p>
  </p>
    <p></p>
</div>
    <div id="todayList">
<ul  class="todayList">
<%
	
	UserVO u1 = (UserVO)request.getSession().getAttribute("UserVO");
	if(u1 == null){
		response.sendRedirect("index.jsp");
		return;
	}
	
	ArrayList<MessagerContentVO> li=new ArrayList();
	MessagerContentManagement vo=new MessagerContentManagement();
	li=(ArrayList<MessagerContentVO>) vo.listMessagerByRecievceID(u1.getUserID());
	
	for(int i=0;i<li.size();i++)
	{
	%><li>
	<% MessagerContentVO v=li.get(i);
	String name=vo.findSendNameByContentID(u1.getUserID(),v.getContentID());
	%>	
	<a href="MessageContent.jsp?contentID=<%=v.getContentID()  %>&receiveID=<%=u1.getUserID() %>&<%=name %>">
	
	<div class="img">
	<tr>
	<td><input type="checkbox" name="checkbox" value="checkbox1"></td>
	</tr></div>
	<h2><%out.println(v.getTitle()); %></h2>
	<p class="onlyheight"><%out.println(name); %>  <%out.println(v.getCraeteDate()); %></p>
	<div class="commentNum"> </div>
	</a>
	</li>
 
<%
}
	
 %>

 

 

 
</ul>
</div>
<div class="pagination">
<div class=" disabled "><a   >上一页</a></div>
<div class="allpage">
<div class="currentpage">1/1</div>
                <select  id="dropdown-select" name="select" onchange="dourl('wxapi.php?ac=listhome1&tid=32249&page='+this.value)">
<option   selected="selected"  value=1 >第1页</option>                </select>
</div>
<div class=" disabled  " ><a  >下一页</a></div>
</div>
</div>
<script>
function dourl(url){
location.href= url;
}
</script>

 <div class="copyright"  >@技术支持：风</div> 

</body>
</html>

